package com.mao.service.impl.voucher;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mao.dao.voucher.ReturnDeliveryVoucherDao;
import com.mao.model.voucher.ReturnDeliveryVoucher;
import com.mao.service.voucher.IReturnDeliveryVoucherService;

@Service("returnDeliveryVoucherService")
public class ReturnDeliveryVoucherServiceImpl<T> implements IReturnDeliveryVoucherService<T> {
	
	private ReturnDeliveryVoucherDao returnDeliveryVoucherDao;
	
	public ReturnDeliveryVoucher saveReturnDeliveryVoucher(ReturnDeliveryVoucher rdv){
		returnDeliveryVoucherDao.saveReturnDeliveryVoucher(rdv);
		return rdv;
	}
	
	public String verifiyCanReturn(long proId,long orgId,long whId){
		return returnDeliveryVoucherDao.verifiyCanReturn(proId, orgId, whId);
	}

	public ReturnDeliveryVoucherDao getReturnDeliveryVoucherDao() {
		return returnDeliveryVoucherDao;
	}

	@Autowired
	public void setReturnDeliveryVoucherDao(
			ReturnDeliveryVoucherDao returnDeliveryVoucherDao) {
		this.returnDeliveryVoucherDao = returnDeliveryVoucherDao;
	}
	
	

}
